#include <list>
#include "object.h"
#include <cl/cl.h>
#include "clstate.h"
#include <boost/thread.hpp>
struct obj_manager
{

    std::list<object*> objs;
    std::list<bool> is_gpushed;
    std::list<cl_float4*> tex; ///just assume 1024&2 for now


    cl_mem gmemory;

    void add_obj(object *toadd);
    void rem_obj(object *toremove);

    void push_objects();

};
